package com.ggbz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生信息表，存储学生的详细信息
 * </p>
 *
 * @author ggbz
 * @since 2025-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Students对象", description="学生信息表，存储学生的详细信息")
public class Students implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "学生ID，主键")
    @TableId(value = "student_id", type = IdType.AUTO)
    private Integer studentId;

    @ApiModelProperty(value = "关联用户表的用户ID")
    private Integer userId;

    @ApiModelProperty(value = "班级名称")
    private String className;

    @ApiModelProperty(value = "专业名称")
    private String major;

    @ApiModelProperty(value = "入学年份")
    private Integer enrollmentYear;


}
